package com.vhall.component.entity.tag.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author guoxin.wang
 * @date 2021-07-05 19:14
 */
@Data
public class TagUpdateVO implements Serializable {

    private static final long serialVersionUID = -6075840030217546660L;

    /**
     * token
     */
    @ParamName("token")
    private String token;

    @NotNull(message = "tag_id参数错误")
    @ParamName("tag_id")
    private Integer tagId;

    @ParamName("name")
    private String name;

    @ParamName("status")
    private Integer status;

    @ParamName("app_id")
    private String appId;

    @ParamName("use_count")
    private Long useCount;

    @Min(value = 0, message = "type参数取值范围为0、1")
    @Max(value = 1, message = "type参数取值范围为0、1")
    @ParamName("type")
    private Integer type;

    @ParamName("created_at")
    private LocalDateTime createdAt;

    @ParamName("updated_at")
    private LocalDateTime updatedAt;

    @ParamName("deleted_at")
    private LocalDateTime deletedAt;

}
